package JAVASE515;

public class JAVAexist {
    public static void main(String[] argc){
        int[] arr={12,2354,234,12,5,4,76};
        int number=2354;
        int num2=21;
        System.out.println(contains(arr,2354));;
        System.out.println(contains(arr,21));;
    }
    public static boolean contains(int[] arr,int number){
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]==number) {
                return true;
            }
        }
        return false;
    }
}
